import { getHomeList} from '@/api/home.js'

const state = {
	
};

const mutations = {
    SET_TOKEN: (state, token) => {
      state.token = token
    },
};

const actions = {
  getList({ commit }) {
      return new Promise((resolve, reject) => {
        getHomeList()
          .then(response => {resolve(response)})
          .catch(error => {
            reject(error)
          })
      })
    },
};

export default {
  namespaced: true,
  state,
  actions,
  mutations,
};
